%% copy riak-0.14.2 source to learn dynamo implementation and erlang
%% author: lichuang
%% copy source from riak_kv_pb_socket_sup.erl
-module(edynamo_pb_socket_sup).
-behaviour(supervisor).
-export([start_link/0, init/1, stop/1]).
-export([start_socket/0]).

start_socket() ->
  supervisor:start_child(?MODULE, []).

start_link() ->
  supervisor:start_link({local, ?MODULE}, ?MODULE, []).

stop(_S) -> ok.

init([]) ->
  {ok, {{simple_one_for_one, 10, 10},
	[{undefined, {edynamo_pb_socket, start_link, []},
	    temporary, brutal_kill, worker, [edynamo_pb_socket]}]}}.
